﻿/*----------------------------------------------------------------
//  <copyright file="SendDetailDto.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2023-09-14 11:04</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.SMS.Dtos
{
    #region "短信发送明细DTO"
    /// <summary>
    /// 短信发送明细DTO
    /// </summary>
    public class SendDetailDto
    {
        #region "属性"
        #region "获取或设置 短信内容"
        /// <summary>
        /// 获取或设置 短信内容
        /// </summary>
        public string Content { get; set; }
        #endregion
        #region "获取或设置 运营商短信状态码"
        /// <summary>
        /// 获取或设置 运营商短信状态码
        /// 短信发送成功：DELIVERED
        /// 短信发送失败：失败错误码请参考 https://help.aliyun.com/document_detail/101347.html?spm=a2c4g.11186623.2.14.6f61bc45nRmvHI
        /// </summary>
        public string ErrCode { get; set; }
        #endregion
        #region "获取或设置 外部流水扩展字段"
        /// <summary>
        /// 获取或设置 外部流水扩展字段
        /// </summary>
        public string OutId { get; set; }
        #endregion
        #region "获取或设置 接收短信的手机号码"
        /// <summary>
        /// 获取或设置 接收短信的手机号码
        /// </summary>
        public string PhoneNum { get; set; }
        #endregion
        #region "获取或设置 短信接收日期和时间"
        /// <summary>
        /// 获取或设置 短信接收日期和时间
        /// </summary>
        public string ReceiveDate { get; set; }
        #endregion
        #region "获取或设置 短信发送日期和时间"
        /// <summary>
        /// 获取或设置 短信发送日期和时间
        /// </summary>
        public string SendDate { get; set; }
        #endregion
        #region "获取或设置 短信发送状态"
        /// <summary>
        /// 获取或设置 短信发送状态
        /// </summary>
        public SmsSendStatus SendStatus { get; set; }
        #endregion
        #region "获取或设置 短信模板ID"
        /// <summary>
        /// 获取或设置 短信模板ID
        /// </summary>
        public string TemplateCode { get; set; }
        #endregion

        #region "获取 是否成功"
        /// <summary>
        /// 获取 是否成功
        /// </summary>
        public bool Succeeded => SendStatus == SmsSendStatus.Succeeded;
        #endregion

        #endregion

    }
    #endregion

}
